Skip to content

Conversation

sindrelm
Copy link
Member

Additions

  • Adds a minimal PupilGameProgressRepository class
  • Leaderboard api at "api/v1/leaderboard" for fetching leaderboard for the pupils or teachers classroom
  • Add helper method to CurrentUserResolver for getting a authenticated subjects associated classroom
  • Adds migration scheme for PupilGameProgress table

kristoffer and others added 22 commits April 15, 2026 10:59
# Conflicts:
#	src/main/kotlin/edu/ntnu/idi/idatt/backend/bootstrap/DevDataBootstrap.kt
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
@sindrelm sindrelm marked this pull request as draft April 20, 2026 08:49
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
@sindrelm sindrelm marked this pull request as ready for review April 20, 2026 09:30
@sindrelm sindrelm requested a review from johanaam April 20, 2026 09:30
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Signed-off-by: sindrelm <sindrelm@stud.ntnu.no>
Copy link
Member

@johanaam johanaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines 18 to 26
fun findByPupil_IdAndClassroom_Id(pupilUserId: Long, classroomId: Long): PupilGameProgress?

/**
* Finds all progress records for a classroom.
*
* @param classroomId the classroom ID
* @return all progress records registered for the classroom, ordered for leaderboard display
*/
fun findAllByClassroom_IdOrderByTotalScoreDescTotalXpDescCurrentLevelDescLastActivityAtDesc(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no underscores in name

@johanaam johanaam merged commit 4be234b into main Apr 20, 2026
1 check passed
@johanaam johanaam deleted the feat/leaderboard branch April 20, 2026 11:39
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants